package com.regent.controller;

import org.apache.commons.lang3.RandomStringUtils;
import org.apache.commons.lang3.RandomUtils;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class TestBean {
    public List<Map<String,Object>> loadReportData(String dsName,String datasetName,Map<String,Object> paramters){
        System.out.println(paramters);

        ArrayList<Map<String, Object>> list = new ArrayList<Map<String,Object>>();
        for (int i = 0; i < 1000 ; i++) {
            int ss = RandomUtils.nextInt()+i;
            HashMap<String, Object> map = new HashMap<>();
            map.put("id",i);
            map.put("name", RandomStringUtils.random(10,true,false));
            map.put("password", RandomStringUtils.random(10,true,false));
            list.add(map);
        }

        for (String s : paramters.keySet()) {
            System.out.println(s);
        }
        return list;
    }




}
